package me.jiatao.paging2.network

import me.jiatao.paging2.network.retrofit.HttpResult
import me.jiatao.paging2.pojo.ProjectPage
import retrofit2.http.GET
import retrofit2.http.Path

interface WanAndroidApi {
    //开源API:http://gank.io/api/search/query/listview/category/Android/count/10/page/1

    //https://www.wanandroid.com/project/list/1/json?cid=294
    @GET("project/list/{pageIndex}/json?cid=294")
    suspend fun getProjectList(@Path("pageIndex") pageIndex: Int): HttpResult<ProjectPage>
}